<style>
    :root {
        --primary: #165DFF;
        --primary-light: #4080FF;
        --secondary: #86909C;
        --accent: #FF7D00;
        --light-bg: #F2F3F5;
        --card-bg: #FFFFFF;
        --border-color: #E5E6EB;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
        --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        --radius: 6px;
    }

    body {
        font-family: 'Helvetica Neue', Arial, sans-serif;
        background-color: var(--light-bg);
        color: #1D2129;
        line-height: 1.5;
    }

    .container {
        max-width: 1100px;
    }

    /* 模块通用样式 */
    .content-module {
        margin-bottom: 2rem;
        background-color: var(--card-bg);
        border-radius: var(--radius);
        border: 1px solid var(--border-color);
        overflow: hidden;
        transition: all 0.2s ease;
    }

    .content-module .content-module:hover {
        box-shadow: var(--shadow);
        border-color: transparent;
    }

    .content-module .module-header {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border-color);
        background-color: #FAFAFA;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .content-module .module-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #1D2129;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .content-module .module-title i {
        color: var(--primary);
    }

    .content-module .module-more {
        color: var(--secondary);
        text-decoration: none;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .content-module .module-more:hover {
        color: var(--primary);
    }

    .content-module .module-body {
        padding: 1.25rem;
    }

    /* 最新文章模块 */
    .article-items {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .article-items .article-item {
        display: flex;
        gap: 1rem;
        transition: background-color 0.2s;
        padding: 0.5rem;
        border-radius: var(--radius);
    }

    .article-items .article-item:hover {
        background-color: #F7F8FA;
    }

    .article-items .article-img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: var(--radius);
        flex-shrink: 0;
    }

    .article-items .article-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .article-items .article-title {
        font-weight: 600;
        margin-bottom: 0.25rem;
        line-height: 1.4;
    }

    .article-items .article-title a {
        color: #1D2129;
        text-decoration: none;
    }

    .article-items .article-title a:hover {
        color: var(--primary);
        text-decoration: underline;
    }

    .article-items .article-desc {
        font-size: 0.9rem;
        color: var(--secondary);
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .article-items .article-meta {
        font-size: 0.8rem;
        color: var(--secondary);
        display: flex;
        gap: 1rem;
        margin-top: auto;
    }

    /* 热议问答模块 */
    .qa-list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .qa-list .qa-item {
        padding: 1rem;
        border-radius: var(--radius);
        border: 1px solid var(--border-color);
        transition: all 0.2s;
    }

    .qa-list .qa-item:hover {
        border-color: var(--primary-light);
        background-color: #F7F8FA;
    }

    .qa-list .qa-title {
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .qa-list .qa-title a {
        color: #1D2129;
        text-decoration: none;
    }

    .qa-list .qa-title a:hover {
        color: var(--primary);
    }

    .qa-list .qa-stats {
        display: flex;
        justify-content: space-between;
        font-size: 0.85rem;
        color: var(--secondary);
    }

    .qa-list .qa-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .qa-list .qa-tag {
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
        background-color: #E8F3FF;
        color: var(--primary);
        border-radius: 4px;
    }

    /* 近期活动模块 */
    .event-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .event-list .event-card {
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        overflow: hidden;
        transition: all 0.2s;
    }

    .event-list .event-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow);
        border-color: transparent;
    }

    .event-list .event-img {
        width: 100%;
        height: 120px;
        object-fit: cover;
    }

    .event-list .event-info {
        padding: 0.75rem;
    }

    .event-list .event-date {
        font-size: 0.8rem;
        color: var(--accent);
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .event-list .event-title {
        font-weight: 600;
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .event-list .event-title a {
        color: #1D2129;
        text-decoration: none;
    }

    .event-list .event-title a:hover {
        color: var(--accent);
    }

    .event-list .event-location {
        font-size: 0.8rem;
        color: var(--secondary);
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    /* 热门投票模块 */
    .voting-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .voting-list .vote-card {
        padding: 1rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
    }

    .voting-list .vote-question {
        font-weight: 600;
        margin-bottom: 1rem;
        color: #1D2129;
    }

    .voting-list .vote-options {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .voting-list .vote-option {
        cursor: pointer;
    }

    .voting-list .vote-option input {
        margin-right: 0.5rem;
    }

    .voting-list .vote-bar-container {
        height: 6px;
        background-color: #F2F3F5;
        border-radius: 3px;
        margin-top: 0.25rem;
        overflow: hidden;
    }

    .voting-list .vote-bar {
        height: 100%;
        background-color: var(--primary);
    }

    .voting-list .vote-count {
        font-size: 0.8rem;
        color: var(--secondary);
        margin-top: 0.25rem;
    }

    .voting-list .vote-footer {
        margin-top: 0.75rem;
        font-size: 0.8rem;
        color: var(--secondary);
        display: flex;
        justify-content: space-between;
    }

    /* 星座速览模块 */
    .horoscope-list {
        display: flex;
        overflow-x: auto;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .horoscope-list::-webkit-scrollbar {
        height: 4px;
    }

    .horoscope-list::-webkit-scrollbar-thumb {
        background-color: #CCD0D6;
        border-radius: 2px;
    }

    .horoscope-list .horoscope-item {
        flex: 0 0 110px;
        padding: 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        text-align: center;
        transition: all 0.2s;
    }

    .horoscope-list .horoscope-item:hover {
        background-color: #F7F8FA;
        border-color: var(--primary-light);
    }

    .horoscope-list .horoscope-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 0.5rem;
        background-color: #E8F3FF;
        color: var(--primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .horoscope-list .horoscope-name {
        font-weight: 600;
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .horoscope-list .horoscope-fortune {
        font-size: 0.8rem;
        color: var(--secondary);
        margin-top: 0.5rem;
        line-height: 1.3;
    }

    /* 响应式设计 */
    @media (max-width: 768px) {
        .article-items .article-item {
            flex-direction: column;
        }

        .article-items .article-img {
            width: 100%;
            height: 160px;
        }

        .event-list {
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        }
    }

    @media (max-width: 576px) {
        .module-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;
            padding: 0.75rem;
        }

        .module-body {
            padding: 0.75rem;
        }

        .event-list {
            grid-template-columns: 1fr 1fr;
        }

        .article-items .article-meta {
            flex-wrap: wrap;
        }
    }
</style>

<div class="container py-4 px-3">
    <!-- 最新文章模块 -->
    <div class="content-module">
        <div class="module-header">
            <h3 class="module-title"><i class="fas fa-newspaper"></i> 最新文章</h3>
            <a href="#" class="module-more">更多 <i class="fas fa-angle-right"></i></a>
        </div>
        <div class="module-body">
            <div class="article-items">
                <div class="article-item">
                    <img src="https://picsum.photos/id/1/200/200" alt="人工智能与工作" class="article-img">
                    <div class="article-content">
                        <h4 class="article-title"><a href="#">人工智能如何改变我们未来的工作方式</a></h4>
                        <p class="article-desc">随着AI技术的快速发展，传统工作模式正在发生深刻变革。本文探讨人工智能对就业市场的影响以及未来职场的必备技能。</p>
                        <div class="article-meta">
                            <span><i class="far fa-clock"></i> 2小时前</span>
                            <span><i class="far fa-eye"></i> 1.2k</span>
                            <span><i class="far fa-comment"></i> 36</span>
                        </div>
                    </div>
                </div>

                <div class="article-item">
                    <img src="https://picsum.photos/id/20/200/200" alt="健康饮食" class="article-img">
                    <div class="article-content">
                        <h4 class="article-title"><a href="#">忙碌上班族的健康饮食指南：5分钟快手餐谱</a></h4>
                        <p class="article-desc">没有时间准备健康餐？这些简单易做的食谱将帮助你在忙碌的工作日也能享受营养均衡的饮食，远离外卖和快餐。</p>
                        <div class="article-meta">
                            <span><i class="far fa-clock"></i> 5小时前</span>
                            <span><i class="far fa-eye"></i> 3.5k</span>
                            <span><i class="far fa-comment"></i> 89</span>
                        </div>
                    </div>
                </div>

                <div class="article-item">
                    <img src="https://picsum.photos/id/96/200/200" alt="旅行摄影" class="article-img">
                    <div class="article-content">
                        <h4 class="article-title"><a href="#">旅行摄影入门：用手机拍出专业级照片</a></h4>
                        <p class="article-desc">不需要昂贵的摄影器材，掌握这些简单技巧，你的手机也能拍出令人惊艳的旅行照片，记录美好瞬间。</p>
                        <div class="article-meta">
                            <span><i class="far fa-clock"></i> 昨天</span>
                            <span><i class="far fa-eye"></i> 2.8k</span>
                            <span><i class="far fa-comment"></i> 54</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 热议问答模块 -->
    <div class="content-module">
        <div class="module-header">
            <h3 class="module-title"><i class="fas fa-comments"></i> 热议问答</h3>
            <a href="#" class="module-more">更多 <i class="fas fa-angle-right"></i></a>
        </div>
        <div class="module-body">
            <div class="qa-list">
                <div class="qa-item">
                    <h4 class="qa-title"><a href="#">30岁转行还来得及吗？有哪些需要注意的地方？</a></h4>
                    <div class="qa-stats">
                        <span>提问者：职场新人</span>
                        <span>42个回答</span>
                    </div>
                    <div class="qa-tags">
                        <span class="qa-tag">职业规划</span>
                        <span class="qa-tag">转行</span>
                    </div>
                </div>

                <div class="qa-item">
                    <h4 class="qa-title"><a href="#">如何有效提高专注力，减少工作中的分心？</a></h4>
                    <div class="qa-stats">
                        <span>提问者：注意力涣散</span>
                        <span>28个回答</span>
                    </div>
                    <div class="qa-tags">
                        <span class="qa-tag">专注力</span>
                        <span class="qa-tag">时间管理</span>
                    </div>
                </div>

                <div class="qa-item">
                    <h4 class="qa-title"><a href="#">一线城市和二三线城市，哪个更适合年轻人发展？</a></h4>
                    <div class="qa-stats">
                        <span>提问者：纠结的毕业生</span>
                        <span>76个回答</span>
                    </div>
                    <div class="qa-tags">
                        <span class="qa-tag">城市选择</span>
                        <span class="qa-tag">职业发展</span>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 近期活动模块 -->
    <div class="content-module">
        <div class="module-header">
            <h3 class="module-title"><i class="fas fa-calendar-alt"></i> 近期活动</h3>
            <a href="#" class="module-more">更多 <i class="fas fa-angle-right"></i></a>
        </div>
        <div class="module-body">
            <div class="event-list">
                <div class="event-card">
                    <img src="https://picsum.photos/id/26/300/200" alt="科技创业者交流会" class="event-img">
                    <div class="event-info">
                        <div class="event-date">6月18日</div>
                        <h4 class="event-title"><a href="#">2023科技创业者交流会</a></h4>
                        <div class="event-location"><i class="fas fa-map-marker-alt"></i> 创新中心</div>
                    </div>
                </div>

                <div class="event-card">
                    <img src="https://picsum.photos/id/10/300/200" alt="城市户外徒步" class="event-img">
                    <div class="event-info">
                        <div class="event-date">6月20日</div>
                        <h4 class="event-title"><a href="#">城市户外徒步：探索自然</a></h4>
                        <div class="event-location"><i class="fas fa-map-marker-alt"></i> 中央公园</div>
                    </div>
                </div>

                <div class="event-card">
                    <img src="https://picsum.photos/id/42/300/200" alt="摄影技巧分享会" class="event-img">
                    <div class="event-info">
                        <div class="event-date">6月25日</div>
                        <h4 class="event-title"><a href="#">手机摄影大师班</a></h4>
                        <div class="event-location"><i class="fas fa-map-marker-alt"></i> 文化中心</div>
                    </div>
                </div>

                <div class="event-card">
                    <img src="https://picsum.photos/id/65/300/200" alt="读书会" class="event-img">
                    <div class="event-info">
                        <div class="event-date">6月30日</div>
                        <h4 class="event-title"><a href="#">夏日读书会：文学与生活</a></h4>
                        <div class="event-location"><i class="fas fa-map-marker-alt"></i> 城市图书馆</div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 热门投票模块 -->
    <div class="content-module">
        <div class="module-header">
            <h3 class="module-title"><i class="fas fa-poll"></i> 热门投票</h3>
            <a href="#" class="module-more">更多 <i class="fas fa-angle-right"></i></a>
        </div>
        <div class="module-body">
            <div class="voting-list">
                <div class="vote-card">
                    <h4 class="vote-question">你更倾向于哪种工作模式？</h4>
                    <div class="vote-options">
                        <div class="vote-option">
                            <label>
                                <input type="radio" name="work-mode" class="form-check-input">
                                完全远程工作
                            </label>
                            <div class="vote-bar-container">
                                <div class="vote-bar" style="width: 35%;"></div>
                            </div>
                            <div class="vote-count">35% (1,245票)</div>
                        </div>

                        <div class="vote-option">
                            <label>
                                <input type="radio" name="work-mode" class="form-check-input">
                                混合办公（部分远程，部分现场）
                            </label>
                            <div class="vote-bar-container">
                                <div class="vote-bar" style="width: 52%;"></div>
                            </div>
                            <div class="vote-count">52% (1,842票)</div>
                        </div>

                        <div class="vote-option">
                            <label>
                                <input type="radio" name="work-mode" class="form-check-input">
                                完全现场办公
                            </label>
                            <div class="vote-bar-container">
                                <div class="vote-bar" style="width: 13%;"></div>
                            </div>
                            <div class="vote-count">13% (456票)</div>
                        </div>
                    </div>
                    <div class="vote-footer">
                        <span>总票数：3,543</span>
                        <span>剩余：2天</span>
                    </div>
                </div>

                <div class="vote-card">
                    <h4 class="vote-question">你通常通过什么方式获取新闻资讯？</h4>
                    <div class="vote-options">
                        <div class="vote-option">
                            <label>
                                <input type="radio" name="news-source" class="form-check-input">
                                社交媒体
                            </label>
                            <div class="vote-bar-container">
                                <div class="vote-bar" style="width: 42%;"></div>
                            </div>
                            <div class="vote-count">42% (2,156票)</div>
                        </div>

                        <div class="vote-option">
                            <label>
                                <input type="radio" name="news-source" class="form-check-input">
                                新闻APP
                            </label>
                            <div class="vote-bar-container">
                                <div class="vote-bar" style="width: 31%;"></div>
                            </div>
                            <div class="vote-count">31% (1,592票)</div>
                        </div>

                        <div class="vote-option">
                            <label>
                                <input type="radio" name="news-source" class="form-check-input">
                                电视/广播
                            </label>
                            <div class="vote-bar-container">
                                <div class="vote-bar" style="width: 12%;"></div>
                            </div>
                            <div class="vote-count">12% (618票)</div>
                        </div>
                    </div>
                    <div class="vote-footer">
                        <span>总票数：5,234</span>
                        <span>剩余：1天</span>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 星座速览模块 -->
    <div class="content-module">
        <div class="module-header">
            <h3 class="module-title"><i class="fas fa-star"></i> 星座速览</h3>
            <a href="#" class="module-more">完整运势 <i class="fas fa-angle-right"></i></a>
        </div>
        <div class="module-body">
            <div class="horoscope-list">
                <div class="horoscope-item">
                    <div class="horoscope-icon">
                        <i class="fas fa-bull"></i>
                    </div>
                    <div class="horoscope-name">白羊座</div>
                    <div class="text-warning">
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="far fa-star"></i>
                    </div>
                    <p class="horoscope-fortune">适合开展新项目，职场上会有不错的机遇。</p>
                </div>

                <div class="horoscope-item">
                    <div class="horoscope-icon">
                        <i class="fas fa-bullseye"></i>
                    </div>
                    <div class="horoscope-name">金牛座</div>
                    <div class="text-warning">
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star-half-alt"></i>
                    </div>
                    <p class="horoscope-fortune">财务状况稳定，投资方面有好消息传来。</p>
                </div>

                <div class="horoscope-item">
                    <div class="horoscope-icon">
                        <i class="fas fa-twin"></i>
                    </div>
                    <div class="horoscope-name">双子座</div>
                    <div class="text-warning">
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="far fa-star"></i>
                        <i class="far fa-star"></i>
                    </div>
                    <p class="horoscope-fortune">沟通中容易产生误解，需注意表达方式。</p>
                </div>

                <div class="horoscope-item">
                    <div class="horoscope-icon">
                        <i class="fas fa-crab"></i>
                    </div>
                    <div class="horoscope-name">巨蟹座</div>
                    <div class="text-warning">
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star-half-alt"></i>
                    </div>
                    <p class="horoscope-fortune">财运亨通，适合理财规划，感情生活顺利。</p>
                </div>

                <div class="horoscope-item">
                    <div class="horoscope-icon">
                        <i class="fas fa-lion"></i>
                    </div>
                    <div class="horoscope-name">狮子座</div>
                    <div class="text-warning">
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="far fa-star"></i>
                    </div>
                    <p class="horoscope-fortune">工作效率高，容易得到上司赏识，社交顺利。</p>
                </div>

                <div class="horoscope-item">
                    <div class="horoscope-icon">
                        <i class="fas fa-seedling"></i>
                    </div>
                    <div class="horoscope-name">处女座</div>
                    <div class="text-warning">
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="far fa-star"></i>
                        <i class="far fa-star"></i>
                    </div>
                    <p class="horoscope-fortune">注意健康饮食，工作中避免过于挑剔细节。</p>
                </div>

                <div class="horoscope-item">
                    <div class="horoscope-icon">
                        <i class="fas fa-balance-scale"></i>
                    </div>
                    <div class="horoscope-name">天秤座</div>
                    <div class="text-warning">
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="fas fa-star"></i>
                        <i class="far fa-star"></i>
                        <i class="far fa-star"></i>
                    </div>
                    <p class="horoscope-fortune">人际关系需要注意，避免不必要的争执。</p>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
	document.addEventListener('DOMContentLoaded', function () {
		// 投票选项交互
		const voteOptions = document.querySelectorAll('.vote-option input');
		voteOptions.forEach(option => {
			option.addEventListener('change', function () {
				// 获取同组其他选项
				const name = this.getAttribute('name');
				document.querySelectorAll(`input[name="${name}"]`).forEach(input => {
					const parent = input.closest('.vote-option');
					if (input.checked) {
						parent.classList.add('bg-primary/5', 'p-2', 'rounded');
					} else {
						parent.classList.remove('bg-primary/5', 'p-2', 'rounded');
					}
				});
			});
		});

		// 平滑滚动
		document.querySelectorAll('a[href^="#"]').forEach(anchor => {
			anchor.addEventListener('click', function (e) {
				e.preventDefault();
				const targetId = this.getAttribute('href');
				if (targetId !== '#') {
					document.querySelector(targetId)?.scrollIntoView({
						behavior: 'smooth'
					});
				}
			});
		});
	});
</script>
